#ifndef _LockGuard_H_
#define _LockGuard_H_

#include "MutexLock.hpp"

namespace wd{



class LockGuard{
public:
    LockGuard(MutexLock & lock)
    :_lock(lock){
        _lock.lock();
    }
    ~LockGuard(){
        _lock.unlock();
    }
private:
    MutexLock & _lock;
};

}


    

#endif

